package com.xuhe.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ComponentScan(value = {"com.yszn", "com.xuhe"}
//        , excludeFilters = @ComponentScan.Filter(type =  FilterType.ASSIGNABLE_TYPE,
//        classes = {IRedisUtil.class, RedisLockUtil.class})
)
@SpringBootApplication
@EnableScheduling
@EnableTransactionManagement(proxyTargetClass = true) // 开始事务管理
public class ServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
    }
}